package ru.gerunn.silent.trash;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class XClientApp {

	public static void main(String[] args) {
		JFrame frame = new JFrame("title");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setSize(800, 800);

		JMenuBar menuBar = new JMenuBar();
		JMenu menuFile = new JMenu("File");
		JMenu menuHelp = new JMenu("Help");
		menuBar.add(menuFile);
		menuBar.add(menuHelp);

		JMenuItem menuFileItemOpen = new JMenuItem("Open");
		JMenuItem menuFileItemClose = new JMenuItem("Close");
		menuFile.add(menuFileItemOpen);
		menuFile.add(menuFileItemClose);
		
		JPanel panel = new JPanel();
		JLabel label = new JLabel("Enter Text");
		JTextField tf = new JTextField(10);
		JButton send = new JButton("Send");
		JButton reset = new JButton("Reset");
		panel.add(label);
		panel.add(tf);
		panel.add(send);
		panel.add(reset);

		JTextArea textArea = new JTextArea();

		frame.getContentPane().add(BorderLayout.SOUTH, panel);
		frame.getContentPane().add(BorderLayout.NORTH, menuBar);
		frame.getContentPane().add(BorderLayout.CENTER, textArea);

		frame.setVisible(true);
	}

}
